package cn.action;

import cn.beans.AboutUs;

public class AboutUsAction extends BaseAction {

	private AboutUs aboutUs;
	private String content;

	public String readAboutUs(){
		aboutUs = commonservice.findById("aboutus", new AboutUs());
		return SUCCESS;
	}
	
	
	public String readContractus(){
		aboutUs = commonservice.findById("contractus", new AboutUs());
		return SUCCESS;
	}
	
	public String updateAboutUs(){
		AboutUs a = commonservice.findById("aboutus", new AboutUs());
		a.setContent(content);
		commonservice.updateDemo(a);
		
		aboutUs = commonservice.findById("aboutus", new AboutUs());
		
		return SUCCESS;
	}

	public AboutUs getAboutUs() {
		return aboutUs;
	}

	public void setAboutUs(AboutUs aboutUs) {
		this.aboutUs = aboutUs;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}
